package Engine;

import Model.*;
import java.util.Date;

/**
 *
 * @author Ivelios
 */
public class Factory extends AFactory {

    public IProduct createProduit(String titre, String description, String objectif){
        return new Product(titre,description,objectif);
    }

    public IStory createHistoire(String description, int estimation, int classement, int poids, ITheme theme){
        return new Story(VarID.ID_HISTOIRE++,description,estimation,classement,poids,theme);
    }

    public IRelease createRelease(String nom, String objectif, Date date){
        return new Release(VarID.ID_RELEASE++,nom,objectif,date);
    }

    public ITheme createTheme(String nom){
        return new Theme(VarID.ID_THEME++,nom);
    }

    public ITeam createEquipe(String nom){
        return new Team(VarID.ID_EQUIPE++,nom);
    }

    public IUser createUtilisateur(String nom, String prenom, String login, String passWord, String rank){
        return new User(VarID.ID_UTILISATEUR++,nom,prenom,login,passWord,rank);
    }

}
